import request from "@/utils/request";
//请求推荐页面视频数据
export const reqIndexInfo = (pageSize: number, pageNum: number) => {
  return request.get<any, any>(`/apis/moment/moments/rec/default`, {
    params: {
      access_token: "c494ae44-3adc-48ca-8749-5128a53358d7",
      column: "recommend",
      pageSize,
      pageNum,
    },
  });
};
//请求轮播图数据
export const reqSlideShow = () => {
  return request.get<any, any>("/apis/promotion/ads/search/findByPosition", {
    params: {
      access_token: "c494ae44-3adc-48ca-8749-5128a53358d7",
      position: "pc_mainpage",
    },
  });
};
//请求兴趣列表数据
export const reqInterestList = (pageNum: number, pageSize: number) => {
  return request.get<any, any>("/apis/avocation/avocations/rec/user", {
    params: {
      access_token: "6b44a37a-0df2-4a8a-a4b8-7c0cd2d2a222",
      pageNum,
      pageSize,
    },
  });
};
// 兴趣列表_关键字搜索
export const reqGetSearchInterestList = (name: string) => {
  return request.get<any,any>("/apis/avocation/avocations/search/findByName", {
    params: {
      access_token: "6b44a37a-0df2-4a8a-a4b8-7c0cd2d2a222",
      name,
    },
  });
};
